//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#ifndef PDBTOFASTA_H
#define	PDBTOFASTA_H
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#include "libraries.h"
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
class PDBToFASTA {

  private:

    String* location;
    String* listInFilename;
    String* finalListInFilename;
    String* filenameOut;

  protected:

    bool    SplitColumn(char*, TListE <String>*, char*);
    bool    SplitColumn(char*, TListE <String>*, const char*);
    char    OneLetterAACode(String*);
    String* ExtractPDBCodeFromNamefile(String*);

  public:
 
    PDBToFASTA();
    PDBToFASTA(const PDBToFASTA&);
    PDBToFASTA(const PDBToFASTA*);

    ~PDBToFASTA();

    void    Location(String*);
    void    FilenameOut(String*);
    void    ListInFilename(String*);
    void    FinalListInFilename(String*);

    String* Location(void);
    String* FilenameOut(void);
    String* ListInFilename(void);
    String* FinalListInFilename(void);

    bool    ConstructFileUsingList();
    bool    ConstructFileWithoutDUsingList();
    bool    GetNameLigandPDBUsingList(String*);

};
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#endif
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
